package org.devf.fork.imsimulator.socket;

import org.devf.fork.imsimulator.socket.dto.BasePackets;
import org.devf.fork.imsimulator.socket.handler.listener.HandlerListener;

/**
 * Ihandler related
 *
 * @author wanghuafu
 * @since 1.0  2023/9/12 14:37
 */
public interface Ihandler {

    boolean isSupport(BasePackets packets);

    boolean execute(Channel channel, BasePackets packets);

    default void register(HandlerListener chatListener){
        //子对象实现
    }
}
